#!/bin/bash

abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
path_only=`dirname "$abspath"`
cd $path_only

$path_only/script/setSettings.bat

IF EXIST "%rootPath%trunk" (
	echo ok
) else (
	cd "%rootPath%"
	svn co %repositoryUrl% --username %repositoryUserName% --password %repositoryPassword%
)

popd
